<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>所有的用户</h1>
    <table width="500" border="1">
        <tr>
            <td>用户名</td>
            <td>密码</td>
            <td>注册时间</td>
            <td>头像</td>
        </tr>
        <% for( let i=0;i<userData.length;i++ ){%>
        <tr>
            <td><%= userData[i].username %></td>
            <td><%= userData[i].password %></td>
            <td><%= userData[i].time %></td>
            <td><img width="100" height="100" src="<%= '/uploads/'+userData[i].avatar %>" alt=""></td>
        </tr>
        <% }  %>
    </table>
</body>
</html>